<!--
  This file is a part of the open-eBackup project.
  This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
  If a copy of the MPL was not distributed with this file, You can obtain one at
  http://mozilla.org/MPL/2.0/.
  
  Copyright (c) [2024] Huawei Technologies Co.,Ltd.
  
  THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
  EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
  MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
  -->

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en-us" xml:lang="en-us">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="DC.Type" content="topic">
  <meta name="DC.Title" content="Enabling Input and Output Functions of the Nginx Port (Applicable to Some Resources)">
  <meta name="DC.Format" content="XHTML">
  <meta name="DC.Identifier" content="EN-US_TOPIC_0000002164790296">
  <meta name="DC.Language" content="en-us">
  <link rel="stylesheet" type="text/css" href="public_sys-resources/commonltr.css">
  <title>Enabling Input and Output Functions of the Nginx Port (Applicable to Some Resources)</title>
 </head>
 <body style="clear:both; padding-left:10px; padding-top:5px; padding-right:5px; padding-bottom:5px">
  <a name="EN-US_TOPIC_0000002164790296"></a><a name="EN-US_TOPIC_0000002164790296"></a>
  <h1 class="topictitle1"><span id="ph7660143752218">Enabling Input and Output Functions of the Nginx Port (Applicable to Some Resources)</span></h1>
  <div>
   <p>If the resources to be protected are as follows and the firewall is enabled on the host where the client is to be installed, enable the input and output functions of the Nginx listening port. The Nginx listening port is the communication port between the <span>product</span> and the host where the client is installed. This section uses Red Hat Enterprise Linux Server release 7.2 as an example. If the firewall is not enabled or the resources to be protected are not the following ones, skip this section.</p>
   <p>FusionCompute, Oracle, HDFS, HBase, Hive, Elasticsearch, ClickHouse, Redis, PostgreSQL, MySQL/MariaDB/GreatSQL, GaussDB T, GaussDB (DWS), Huawei Cloud Stack GaussDB, openGauss/CMDB, AntDB, Dameng, object storage, NAS files, SAP HANA, Kingbase, MongoDB, TDSQL, GBase 8a, TiDB, Informix/GBase 8s, SQL Server, NDMP NAS files, GaussDB, GoldenDB, OceanBase, Huawei Cloud Stack, Kubernetes FlexVolume, OpenStack, DB2, FusionOne Compute, or filesets.</p>
   <div class="section">
    <h4 class="sectiontitle">Procedure</h4>
    <ol>
     <li id="EN-US_TOPIC_0000002164790296__li183515510494"><span>Use PuTTY to log in to the host where the client is to be installed as user <strong id="EN-US_TOPIC_0000002164790296__en-us_topic_0000002200031305_b916917212">root</strong>.</span></li>
     <li><span>Run the following command to check whether the firewall is enabled:</span><p></p><pre class="screen">systemctl status firewalld</pre> <p>If <strong>Active: active (running)</strong> is displayed in the command output, the firewall has been enabled. Go to the next step. Otherwise, no further action is required.</p> <p></p></li>
     <li><span>Run the following command to check the Nginx listening port:</span><p></p><pre class="screen">netstat -anp | grep nginx</pre>
      <div class="p">
       In the following example, <span class="parmvalue"><b>59521</b></span> is the listening port of Nginx.
       <pre class="screen">[root@localhost ~]# netstat -anp | grep nginx
tcp        0      0 192.168.97.167:59521       0.0.0.0:*               LISTEN      2483/nginx: master
unix  3      [ ]         STREAM     CONNECTED     20149    2483/nginx: master
unix  3      [ ]         STREAM     CONNECTED     20148    2483/nginx: master</pre>
      </div> <p></p></li>
     <li><span>Run the following command to check whether the Nginx listening port is in the list of ports with the input and output function enabled:</span><p></p><pre class="screen">firewall-cmd --permanent --zone=public --list-ports</pre> <p>If the command output includes the Nginx listening port, no further action is required. Otherwise, go to the next step.</p> <p></p></li>
     <li><span>Run the following command to enable the input and output functions of the Nginx listening port.</span><p></p><p>Port <span class="parmvalue"><b>59521</b></span> is used as an example.</p> <pre class="screen">firewall-cmd --zone=public --add-port=<em>59521</em>/tcp --permanent</pre> <p></p></li>
     <li><span>Run the following command to restart the firewall:</span><p></p><pre class="screen">firewall-cmd --reload</pre> <p></p></li>
    </ol>
   </div>
  </div>
 </body>
</html>